<?php

namespace app\api\controller;

use app\api\model\Wxoauth AS WxoauthModel;

use app\common\controller\Send;
use think\facade\Log;

class Wxoauth 
{
    
    
    use Send;
    /**
     * 微信授权登录
     * @return array
     * @throws \think\Exception\DbException
     */
    public function authorize()
    {
        $reqData = input('');
        
        $return  = WxoauthModel::wxOauth($reqData);      
        // 发放登录token
        return self::sendResult($return['code'], $return['data'], $return['msg']);
    }

   
}